package com.ruoyi.basebill.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存调拨单分录对象 t_oms_stocktransferbillentry
 * 
 * @author xiefeng
 * @date 2023-02-15
 */
public class OmsStocktransferbillentry extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 父表id */
    private Long parentid;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String materialnumber;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialname;

    /** 调出仓库编码 */
    @Excel(name = "调出仓库编码")
    private String issuewarehousenumber;

    /** 调出仓库名称 */
    @Excel(name = "调出仓库名称")
    private String issuewarehousename;

    /** 调入仓库编码 */
    @Excel(name = "调入仓库编码")
    private String receiptwarehousenumber;

    /** 调入仓库名称 */
    @Excel(name = "调入仓库名称")
    private String receiptwarehousename;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unitnumber;

    /** 基本计量单位 */
    @Excel(name = "基本计量单位")
    private String baseunitnumber;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal qty;

    /** 基本单位数量 */
    @Excel(name = "基本单位数量")
    private BigDecimal baseqty;

    /** 计划调出日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划调出日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issueplandate;

    /** 计划调入日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划调入日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receiptplandate;

    /** 是否赠品 */
    @Excel(name = "是否赠品")
    private Long ispresent;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentid(Long parentid) 
    {
        this.parentid = parentid;
    }

    public Long getParentid() 
    {
        return parentid;
    }
    public void setMaterialnumber(String materialnumber) 
    {
        this.materialnumber = materialnumber;
    }

    public String getMaterialnumber() 
    {
        return materialnumber;
    }
    public void setMaterialname(String materialname) 
    {
        this.materialname = materialname;
    }

    public String getMaterialname() 
    {
        return materialname;
    }
    public void setIssuewarehousenumber(String issuewarehousenumber) 
    {
        this.issuewarehousenumber = issuewarehousenumber;
    }

    public String getIssuewarehousenumber() 
    {
        return issuewarehousenumber;
    }
    public void setIssuewarehousename(String issuewarehousename) 
    {
        this.issuewarehousename = issuewarehousename;
    }

    public String getIssuewarehousename() 
    {
        return issuewarehousename;
    }
    public void setReceiptwarehousenumber(String receiptwarehousenumber) 
    {
        this.receiptwarehousenumber = receiptwarehousenumber;
    }

    public String getReceiptwarehousenumber() 
    {
        return receiptwarehousenumber;
    }
    public void setReceiptwarehousename(String receiptwarehousename) 
    {
        this.receiptwarehousename = receiptwarehousename;
    }

    public String getReceiptwarehousename() 
    {
        return receiptwarehousename;
    }
    public void setUnitnumber(String unitnumber) 
    {
        this.unitnumber = unitnumber;
    }

    public String getUnitnumber() 
    {
        return unitnumber;
    }
    public void setBaseunitnumber(String baseunitnumber) 
    {
        this.baseunitnumber = baseunitnumber;
    }

    public String getBaseunitnumber() 
    {
        return baseunitnumber;
    }
    public void setQty(BigDecimal qty)
    {
        this.qty = qty;
    }

    public BigDecimal getQty()
    {
        return qty;
    }

    public BigDecimal getBaseqty() {
        return baseqty;
    }

    public void setBaseqty(BigDecimal baseqty) {
        this.baseqty = baseqty;
    }

    public Date getIssueplandate() {
        return issueplandate;
    }

    public void setIssueplandate(Date issueplandate) {
        this.issueplandate = issueplandate;
    }

    public Date getReceiptplandate() {
        return receiptplandate;
    }

    public void setReceiptplandate(Date receiptplandate) {
        this.receiptplandate = receiptplandate;
    }

    public Long getIspresent() {
        return ispresent;
    }

    public void setIspresent(Long ispresent) {
        this.ispresent = ispresent;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentid", getParentid())
            .append("materialnumber", getMaterialnumber())
            .append("materialname", getMaterialname())
            .append("issuewarehousenumber", getIssuewarehousenumber())
            .append("issuewarehousename", getIssuewarehousename())
            .append("receiptwarehousenumber", getReceiptwarehousenumber())
            .append("receiptwarehousename", getReceiptwarehousename())
            .append("unitnumber", getUnitnumber())
            .append("baseunitnumber", getBaseunitnumber())
            .append("qty", getQty())
            .append("baseqty", getBaseqty())
            .append("issueplandate", getIssueplandate())
            .append("receiptplandate", getReceiptplandate())
            .append("ispresent", getIspresent())
            .append("remark", getRemark())
            .toString();
    }
}
